{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set script_controller = 'setting/user-level' %}

{% set menu = 'admin_setting_user_level' %}

{% block main %}
{{ web_macro.flash_messages() }}

<script type="text/javascript" src="{{ asset('assets/libs/jscolor.js') }}"></script> 

<form class="form-horizontal" method="post" >
    
    {% for level in levelarr %}
    <div class="row form-group">
    <div class="col-md-2 control-label">
      <label for="truename">等级{{ level.levelnum }}</label>
    </div>
    <div class="col-md-2 controls">
      <input type="text" id="truename" name="levelname[{{ level.id }}]" class="form-control" value="{{ level.levelname }}" > 
    </div>
    <div class="col-md-2 control-label">
         <label for="truename">头衔颜色</label>
    </div>
     <div class="col-md-1 controls">
         <input class="jscolor" name="color[{{ level.id }}]" class="form-control" value="{{ level.color }}">
    </div>
        
  </div>
    {% endfor %}
 <div class="form-group text-right">
            <button class="btn btn-primary" id="order-create-btn" type="submit" >修改</button>

        </div>

  <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
</form>

{% endblock %}
